package com.itheima.list;

import java.util.LinkedList;

public class Demo04 {
    public static void main(String[] args) {
        LinkedList<String> list= new LinkedList<>();
        list.add("蔡徐坤");
        list.add("鹿晗");
        list.add("鹿晗");
        list.add("张艺兴");
        list.add("黄子韬");
        list.add("吴签");

        System.out.println(list.getFirst());
        System.out.println(list.getFirst());
        System.out.println(list.removeFirst());
        System.out.println(list.removeFirst());
    }
}
